<?php
namespace Api\Controller;
use Think\Controller;
class XtmessageController extends Controller {
    
    public function getxtmessagelist(){
        $xtmessage=M('xtmessage');  
        $x=$xtmessage->select();    
        echo json_encode($x);  
    }

    public function getxtmessageById(){
        $xtmessage=M('xtmessage');
        $xtmessageid=$_GET['xtmessageid'];   
        $x=$xtmessage->where("xtmessageid='$xtmessageid'")->find();    
        echo json_encode($x);   
    }
}
?>